<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<p>Mustache 不能在 HTML 属性中使用，应使用 v-bind 指令：</p>
			<a href="javascript:void(0);" v-bind:title="saysome">本例你主要查看该title属性</a>
			<button v-bind:disabled="buttonDisabled">这个按钮3秒后才能使用</button>
		</div>
	</body>
	<script type="text/javascript">
		var app = new Vue({
			el: '#app',
			data: {
				saysome: "",
				buttonDisabled: true
			}
		});
		window.setInterval(function(){
			app.saysome = "现在是:" + new Date();
		}, 1000);
		window.setInterval(function(){
			app.buttonDisabled = false;
		}, 3000);
	</script>
</html>
